package cn.lxinet.lxms.system.mapper;

import cn.lxinet.lxms.framework.core.vo.Page;
import cn.lxinet.lxms.framework.mybatis.mapper.BaseMapper;
import cn.lxinet.lxms.system.entity.SysPost;
import cn.lxinet.lxms.system.vo.SysPostVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysPostMapper extends BaseMapper<SysPost> {

    List<SysPostVo> list(@Param("page") Page page, @Param("name") String name, @Param("code") String code, @Param("status") Integer status);

    List<SysPostVo> simpleList();

    SysPost findByCode(String code);
}
